import request from '@/common/request.js'
import { formatGetUri } from '@/common/util.js'

const api = {};
const MESSAGE = 'message';
//消息首页
api.mess_list = params => request.globalRequest(`${MESSAGE}/mess_list`, 'POST', params, 1)
//消息列表
api.mess_typelist = params => request.globalRequest(`${MESSAGE}/mess_typelist`, 'POST', params, 1)
//消息详情
api. notice_detail = params => request.globalRequest(`${MESSAGE}/notice_detail`, 'POST', params, 1)


// GET请求方式
//api.homeindex = params => request.globalRequest(`${PORT1}/index${formatGetUri(params)}`, 'GET',{}, 1)
export default api